package com.mmlc.meimei.lichengkongjian.mine;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.handmark.pulltorefresh.library.PullToRefreshListView;
import com.mmlc.businessutils.OrderShowUtils;
import com.mmlc.inter.InterActivity;
import com.mmlc.meimei.lichengkongjian.R;

import butterknife.ButterKnife;
import butterknife.InjectView;

/**
 * Created by Administrator on 2016/7/19 0019.
 */
public class GoPay extends InterActivity implements View.OnClickListener {

    @InjectView(R.id.pull_refresh_list)
    PullToRefreshListView pullRefreshList;
    @InjectView(R.id.rootView)
    RelativeLayout rootView;
    @InjectView(R.id.tv_title)
    TextView tvTtitle;
    @InjectView(R.id.iv_back)
    ImageView ivBack;
    @InjectView(R.id.iv_set)
    ImageView ivSet;

    @Override
    protected int initContentView() {
        return R.layout.activity_gopay;
    }

    @Override
    protected void initView() {
        ButterKnife.inject(this);
        processData();
    }

    @Override
    protected void initEvent() {

    }

    OrderShowUtils showUtils;
    private void processData() {
        ivBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        ivSet.setVisibility(View.GONE);
        tvTtitle.setText("待付款");

        showUtils = new OrderShowUtils(this,this, pullRefreshList);
        showUtils.showOrder(1,rootView);
    }

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        OrderShowUtils.detailFinish(requestCode,data,showUtils);
    }
}